
<html>
<head>
<meta charset="UTF-8">
<title>数据表模型信息详情</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
<div data-options="region:'center',title:''" >
	<div id="tt" class="easyui-tabs" fit="true" border="false">
		<div title="表模型字段信息" style="padding:0px" border="false" fit="true">
			<table id="dg" class="easyui-datagrid" title="" style="width:100%;height:100%"
				data-options="singleSelect:true,collapsible:true,url:'../../api/model/table/fields?objectId=' + $.getUrlParam('objectId'),method:'post'"
				toolbar="#tb"
				title="Load Data" 
				rownumbers="true" pagination="true" pageSize="20">
				<thead>
					<tr>
						<th data-options="field:'fieldCode',resizable:true" width="15%">字段代码</th>
						<th data-options="field:'fieldName',resizable:true" width="15%">字段名称</th>
						<th data-options="field:'fieldOrder',resizable:true" hidden="true">字段排序</th>
						<th data-options="field:'fieldType',resizable:true" align:'center'" width="10%" align="center">字段类型</th>
						<th data-options="field:'fieldLength',resizable:true" width="8%" align="center">字段长度</th>
						<th data-options="field:'fieldPrecision',resizable:true" width="8%" align="center">字段精度</th>
						<th data-options="field:'fieldOption',resizable:true" width="13%" align="center">字段选项</th>
						<th data-options="field:'isPk',resizable:true" formatter="formatter_STD_PUB_YN" width="5%" align="center">主键</th>
						<th data-options="field:'isAllowNull',resizable:true" formatter="formatter_STD_PUB_YN" width="5%" align="center">允空</th>
						<th data-options="field:'defValue',resizable:true" hidden="true">默认值</th>
						<th data-options="field:'fieldDesc',resizable:true" width="20%">字段描述</th>
		
					</tr>
				</thead>
			</table>
		</div>
		<div title="表模型索引信息" style="padding:0px" border="false" fit="true">
		<table id="dg2" class="easyui-datagrid" title="" style="width:100%;height:100%"
				data-options="singleSelect:true,collapsible:true,url:'../../api/model/table/indexs?objectId=' + $.getUrlParam('objectId'),method:'post'"
				toolbar="#tb"
			title="Load Data" 
			rownumbers="true" pagination="true" pageSize="20">
			<thead>
				<tr>
					<th data-options="field:'indexName',resizable:true" >索引名称</th>
					<th data-options="field:'indexFields',resizable:true" >索引字段</th>
					<th data-options="field:'indexTypePrimary',resizable:true" >主键索引</th>
					<th data-options="field:'indexTypeUnique',resizable:true" >唯一索引</th>
					<th data-options="field:'indexDesc',resizable:true" >索引描述</th>
					<th data-options="field:'createUser',resizable:true" >创建人</th>
					<th data-options="field:'createTime',resizable:true" >创建时间</th>
					<th data-options="field:'lastModifyUser',resizable:true" >最近修改用户</th>
					<th data-options="field:'lastModifyTime',resizable:true" >最近修改时间</th>
				</tr>
			</thead>
		</table>		
		</div>
		<div title="表模型基本信息" style="padding:0px" border="false" fit="true">
	    <form id="ff" method="post">
	    	<div class="esaas-info-title">表模型基本信息</div>
	    	<table class="esaas-info-view-table">
			<tr>
				<td width="15%" align="right">对象标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="objectId" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">对象代码：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="objectCode" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">对象名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="objectName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">对象类型：</td>
				<td width="35%"><select class="easyui-combobox"
					id="objectType" name="objectType"
					style="width: 100%; height: 25px;" disabled
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:DM_OBJECT_TYPE">
				</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">目录包标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="packageId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">工程标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="projectId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">对象状态：</td>
				<td width="35%"><select class="easyui-combobox"
					id="objectState" name="objectState"
					style="width: 100%; height: 25px;" disabled
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:DM_OBJECT_STATE">
				</select></td>
				<td width="15%" align="right">主题域标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="subjectId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">排列顺序：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="orderValue" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">对象描述：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="objectDesc" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">对象位置：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="objectLocation" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">表数据周期：</td>
				<td width="35%"><select class="easyui-combobox"
					id="tableDataCycle" name="tableDataCycle"
					style="width: 100%; height: 25px;" disabled
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:DM_DATA_CYCLE">
				</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">表记录长度：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="tableRecordLength" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">创建人：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="createUser" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">创建时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" disabled
					name="createTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
	    	</table>
	    </form>
		</div>
	</div>
</div>
<div data-options="region:'south',split:false" title="" style="width:100%;height:50px;background: #F4F4F4;">
	<div style="text-align:center;padding:10px">
		 <a href="javascript:window.parent.JLEUtil.closewin();" class="easyui-linkbutton">&nbsp;&nbsp;&nbsp;&nbsp;关&nbsp;&nbsp;&nbsp;&nbsp;闭&nbsp;&nbsp;&nbsp;&nbsp;</a>
	</div>
</div>
	<script>	
		$(function() {
			var objectId = $.getUrlParam('objectId');
			$.restfulGet('../../api/model/table/info/' + objectId,null,function(data){
					$('#ff').form('load', {
						objectId : data.rows.objectId,
						objectCode : data.rows.objectCode,
						objectName : data.rows.objectName,
						objectType : data.rows.objectType,
						packageId : data.rows.packageId,
						projectId : data.rows.projectId,
						objectState : data.rows.objectState,
						subjectId : data.rows.subjectId,
						orderValue : data.rows.orderValue,
						objectDesc : data.rows.objectDesc,
						objectLocation : data.rows.objectLocation,
						tableDataCycle : data.rows.tableDataCycle,
						tableRecordLength : data.rows.tableRecordLength,
						createUser : data.rows.createUser,
						createTime : data.rows.createTime
					});					
			});
		});
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
